package cn.itsource.system.mapper;

import cn.itsource.system.domain.Logininfo;
import cn.itsource.base.mapper.BaseMapper;
import cn.itsource.system.domain.Menu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zcj
 * @since 2023-11-01
 */
public interface LogininfoMapper extends BaseMapper<Logininfo> {

    Logininfo selectByUsernamePhoneEmail(@Param("username") String username,@Param("type") Integer type);

    List<Menu> selectMenuByLoginInfoId(Long id);

    List<String> selectPermissionByLoginInfoId(Long id);
}
